from cProfile import label
from random import choice, choices
from django import forms
from pkg_resources import require

class QrcodeForm(forms.Form):
    qrcode_size_c =  (
        (640, '640*640'),
        (1280, '1280*1280')
    )
    scenic_key = forms.CharField(label='识别码', max_length=100, widget=forms.TextInput(attrs={'readonly':'readonly', 'style': 'width: 300px;'}))
    scenic_name = forms.CharField(label='景区名称', max_length=100, widget=forms.TextInput(attrs={'readonly':'readonly'}))
    qrcode_size = forms.ChoiceField(label='二维码大小', initial=640, choices=qrcode_size_c)
    app_id = forms.CharField(label='App ID', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': '默认为空'}))
    app_sceret = forms.CharField(label='App Secret', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder':'默认为空'}))
